package com.yangrong.thread.chapter10;

public class ThreadLocalSimpleTest {

//	private static ThreadLocal<String> threadLocal = new ThreadLocal<String>();
	private static ThreadLocal<String> threadLocal = new ThreadLocal<String>() {
		protected String initialValue() {
			return "Alex";
		}
	};

	public static void main(String[] args) {
//		threadLocal.set("Alex");
		String value = threadLocal.get();
		System.out.println(value);
	}

}
